package cn.shangqizhenshuai.extend.entity;

/**
 * 生成实体属性
 */
public class Property {
    public String flag;
    public String type;

    public String getFlag() {
        return flag;
    }

    public void setFlag(String flag) {
        this.flag = flag;
    }

    public String getType() {
        return type;
    }

    public void setType(String type) {
        this.type = type;
    }

    @Override
    public boolean equals(Object o) {
        if (this == o) return true;
        if (o == null || getClass() != o.getClass()) return false;

        Property property = (Property) o;

        if (flag != null ? !flag.equals(property.flag) : property.flag != null) return false;
        return type != null ? type.equals(property.type) : property.type == null;
    }

    @Override
    public int hashCode() {
        int result = flag != null ? flag.hashCode() : 0;
        result = 31 * result + (type != null ? type.hashCode() : 0);
        return result;
    }

}
